#!/bin/bash

# 1: running
# 0: stopped

if [ -d "${TOMCAT8_PATH}" ]; then
    count=`/bin/systemctl status tomcat8.service | grep -c running`
    if [ $count -ne 0 ]; then
        echo "1"; exit 0
    else
        echo "0"; exit 0
    fi
fi

